package hu.bme.mit.rifl.main;

import hu.bme.mit.rifl.business.shared.Coordinator;
import hu.bme.mit.rifl.datamodel.Order;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Main method of the application.
 */
public class OrderWF {

	public static void main(String[] args) {
		Coordinator coordinator = new Coordinator();
		Thread coordinatorThread = new Thread(coordinator);
		coordinatorThread.start();

		//test data
		Collection<Order> orders = new ArrayList<Order>();
		
		Order o1 = new Order(1111);
		orders.add(o1);
		Order o2 = new Order(22);
		orders.add(o2);
		Order o3 = new Order(333);
		orders.add(o3);
		
		coordinator.assignOrders(orders);
	}
}